package com.base.po.pdd_sdk;

import java.util.ArrayList;
import java.util.List;

/**
 * 商品详情请求参数
 * 
 * @author max
 *
 */
public class PddGoodsDetailRequest {
	private List<String> detailReq = new ArrayList<>(); // 详情请求参数

	/**
	 * @param goods_id_list 商品ID，目前仅支持单个查询
	 */
	public void setGoods_id_list(Long[] goods_id_list) {
		if (goods_id_list != null && goods_id_list.length > 0) {
			StringBuilder sb = new StringBuilder();
			sb.append("[");
			sb.append(goods_id_list[0]);
			sb.append("]");
			detailReq.add("goods_id_list=" + sb);
		}
//		if (goods_id_list != null && goods_id_list.length > 0) {
//			StringBuilder sb = new StringBuilder();
//			sb.append("[");
//			for (int i = 0; i < goods_id_list.length; i++) {
//				sb.append(goods_id_list[i]);
//				if (i == goods_id_list.length - 1) {
//					continue;
//				}
//				sb.append(",");
//			}
//			sb.append("]");
//			detailReq.add("goods_id_list=" + sb);
//		}
	}

	/**
	 * @return 详情参数
	 */
	public List<String> getDetailReq() {
		return detailReq;
	}
}
